/**
 * 
 */
package com.furschina.model;

import javax.persistence.Embeddable;

/**
 * @author iday
 * 
 */
@Embeddable
public class Card {
	private CardType cardType;
	private String cardNumber;

	/**
	 * @return the cardType
	 */
	public CardType getCardType() {
		return cardType;
	}

	/**
	 * 
	 */
	public Card() {
	}

	/**
	 * @param cardType
	 * @param number
	 */
	public Card(CardType cardType, String cardNumber) {
		this.cardType = cardType;
		this.cardNumber = cardNumber;
	}

	/**
	 * @param cardType
	 *            the cardType to set
	 */
	public void setCardType(CardType cardType) {
		this.cardType = cardType;
	}

	/**
	 * @return the number
	 */
	public String getCardNumber() {
		return cardNumber;
	}

	/**
	 * @param number
	 *            the number to set
	 */
	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}
}
